VERSION 5.00
Object = "{736A8444-E374-41A8-B526-1B07FD2F3F5B}#1.0#0"; "BLacKPeaRLOCX.ocx"
Begin VB.Form FrmUrl 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Monitoring URL Client"
   ClientHeight    =   7560
   ClientLeft      =   45
   ClientTop       =   375
   ClientWidth     =   8160
   Icon            =   "FrmUrl.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   7560
   ScaleWidth      =   8160
   StartUpPosition =   2  'CenterScreen
   Begin BLacKPeaRLOCX.BLacKFrame BLacKFrame1 
      Height          =   7575
      Left            =   0
      TabIndex        =   5
      Top             =   0
      Width           =   8175
      _ExtentX        =   14420
      _ExtentY        =   13361
      BackColor1      =   0
      BackColor2      =   4210752
      Caption         =   "List URL"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   49152
      TitleColor1     =   0
      TitleColor2     =   4210752
      TitleGradient   =   2
      TitleHeight     =   350
      BorderColor     =   49152
      BorderWidth     =   2
      Begin VB.TextBox Txtnoclient 
         BackColor       =   &H00404040&
         BorderStyle     =   0  'None
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H0000C000&
         Height          =   250
         Left            =   1230
         TabIndex        =   0
         Top             =   7005
         Width           =   495
      End
      Begin BLacKPeaRLOCX.ButtonNix CmdTutup 
         Height          =   375
         Left            =   6480
         TabIndex        =   3
         Top             =   6960
         Width           =   1575
         _ExtentX        =   2778
         _ExtentY        =   661
         BTYPE           =   5
         TX              =   "Tutup"
         ENAB            =   -1  'True
         BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         COLTYPE         =   2
         FOCUSR          =   0   'False
         BCOL            =   1184274
         BCOLO           =   16777215
         FCOL            =   49152
         FCOLO           =   49152
         MCOL            =   12632256
         MPTR            =   1
         MICON           =   "FrmUrl.frx":1CFA
         UMCOL           =   -1  'True
         SOFT            =   0   'False
         PICPOS          =   0
         NGREY           =   0   'False
         FX              =   0
         HAND            =   0   'False
         CHECK           =   0   'False
         VALUE           =   0   'False
      End
      Begin BLacKPeaRLOCX.ButtonNix CmdStop 
         Height          =   375
         Left            =   4200
         TabIndex        =   2
         Top             =   6960
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   661
         BTYPE           =   5
         TX              =   "Berhenti Monitoring"
         ENAB            =   -1  'True
         BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         COLTYPE         =   2
         FOCUSR          =   0   'False
         BCOL            =   1184274
         BCOLO           =   16777215
         FCOL            =   49152
         FCOLO           =   49152
         MCOL            =   12632256
         MPTR            =   1
         MICON           =   "FrmUrl.frx":1D16
         UMCOL           =   -1  'True
         SOFT            =   0   'False
         PICPOS          =   0
         NGREY           =   0   'False
         FX              =   0
         HAND            =   0   'False
         CHECK           =   0   'False
         VALUE           =   0   'False
      End
      Begin VB.Timer tmrurl 
         Enabled         =   0   'False
         Interval        =   1000
         Left            =   7080
         Top             =   7560
      End
      Begin BLacKPeaRLOCX.ButtonNix cmdURL 
         Height          =   375
         Left            =   2040
         TabIndex        =   1
         Top             =   6960
         Width           =   1695
         _ExtentX        =   2990
         _ExtentY        =   661
         BTYPE           =   5
         TX              =   "Mulai Monitoring"
         ENAB            =   -1  'True
         BeginProperty FONT {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         COLTYPE         =   2
         FOCUSR          =   0   'False
         BCOL            =   1184274
         BCOLO           =   16777215
         FCOL            =   49152
         FCOLO           =   49152
         MCOL            =   12632256
         MPTR            =   1
         MICON           =   "FrmUrl.frx":1D32
         UMCOL           =   -1  'True
         SOFT            =   0   'False
         PICPOS          =   0
         NGREY           =   0   'False
         FX              =   0
         HAND            =   0   'False
         CHECK           =   0   'False
         VALUE           =   0   'False
      End
      Begin VB.ListBox lstURL 
         Appearance      =   0  'Flat
         BackColor       =   &H00000000&
         ForeColor       =   &H0000C000&
         Height          =   6300
         IntegralHeight  =   0   'False
         Left            =   120
         MultiSelect     =   2  'Extended
         TabIndex        =   6
         Top             =   360
         Width           =   7935
      End
      Begin VB.Shape Shape10 
         BackColor       =   &H00004040&
         BackStyle       =   1  'Opaque
         BorderColor     =   &H00C0FFC0&
         Height          =   345
         Left            =   1200
         Shape           =   4  'Rounded Rectangle
         Top             =   6960
         Width           =   570
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "No Client"
         ForeColor       =   &H0000C000&
         Height          =   195
         Left            =   360
         TabIndex        =   7
         Top             =   6960
         Width           =   645
      End
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "Nomor Client"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   0
      TabIndex        =   4
      Top             =   0
      Width           =   1095
   End
End
Attribute VB_Name = "FrmUrl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdstop_Click()
On Error GoTo hell
tmrurl.Enabled = False
IfNoErr:
Exit Sub
hell:
'MsgBox "An Error In " & Me.Name & ". See Error.log for detail", vbCritical, "Error Handling"
 TulisError Err.Description, Err.Number, "cmdStop_Click", Me.Name
 Resume IfNoErr

End Sub

Private Sub CmdTutup_Click()
Unload Me
End Sub

Private Sub cmdURL_Click()
tmrurl.Enabled = True
End Sub

Private Sub tmrurl_Timer()
On Error GoTo hell
    rec.Open "SELECT ip.*,port.port FROM ip,port WHERE ip.ip = port.ip AND ip.no_client = " & Val(txtnoclient.Text), conn, adOpenStatic, adLockOptimistic
    If Not rec.RecordCount = 0 Then
        If FrmMain.Winsock(rec(2)).State = sckConnected Then
            FrmMain.Winsock(rec(2)).SendData "url|_|_|_|_|_|_|"
        End If
    End If
    rec.Close
IfNoErr:
Exit Sub
hell:
'MsgBox "An Error In " & Me.Name & ". See Error.log for detail", vbCritical, "Error Handling"
 TulisError Err.Description, Err.Number, "tmrurl", Me.Name
 Resume IfNoErr

End Sub

Private Sub txtnoclient_GotFocus()
txtnoclient.Backcolor = &H0&
txtnoclient.Forecolor = vbWhite
End Sub
Private Sub txtnoclient_LostFocus()
txtnoclient.Backcolor = &H404040
txtnoclient.Forecolor = &HC000&
End Sub

